<!DOCTYPE html>
<html lang="zh">
<head>
	<title>${category.name} - PublicCMS</title>
	<meta name="keywords" content="${category.name}"/>
	<meta name="description" content="${category.name}"/>
<!--#include virtual="/include/header.html"-->
</head>
<body>
<!--#include virtual="/include/nav.html"-->
<script>
	$("header nav ul li a:contains('${category.name}')").parent().addClass('selected');
</script>
<main>
	<div class="container nav">
		<@_categoryList parentId=category.id>
			<#list page.list as a>
				<a href="${getSitePath(a.url)}">${a.name}</a>
			</#list>
		</@_categoryList>
	</div>
	<div class="container bread">
		<#include "/ftl/bread_echoParent.ftl"/>
		<@echoParent category.parentId!/>
		<a href="${getSitePath(category.url)}">${category.name}</a>
	</div>
	<div class="container">
<@_contentList status=1 categoryId=category.id containChild=true endPublishDate=.now pageIndex=pageIndex count=category.pageSize>
		<div class="data-list left-content">
			<#if 1=pageIndex>
				<h3>最新文章</h3>
			</#if>
	<#include "/ftl/meger.ftl"/>
	<#include "/ftl/cut.ftl"/>
	<#list page.list as a>
		<@meger 'categoryIds' a.categoryId!/>
	</#list>
	<@_category ids=categoryIds!><#assign categoryMap=map/></@_category>
	<#list page.list as a>
			<dl>
				<#if a.cover?has_content><dd><a href="${getSitePath(a.url)}" target="_blank"><img src="${getUploadPath(getThumb(a.cover,200,160))}"/></a></dd></#if>
				<dt<#if a.cover?has_content> class="image"</#if>>
					<h3>[<a href="${getSitePath(categoryMap[a.categoryId?string].url)}">${categoryMap[a.categoryId?string].name}</a>]<a href="${getSitePath(a.url)}" target="_blank" title="${a.title}"><@cut a.title 36 '...'/></a></h3>
					<div class="tags">
						<#if a.tags?has_content>标签：
							<@_tag ids=a.tags>
								<#list map?keys as key>
									<a href="${getCmsPath()}tags.html?id=${map[key].id}" target="_blank"><em>${map[key].name}</em></a>
								</#list>
							</@_tag>
						</#if>
						<span>${a.publishDate?date}</span>
					</div>
					<p><@cut a.description 65 '...'/><a href="${getSitePath(a.url)}" title="${a.title}" target="_blank"> 详细 &gt;&gt;</a> </p>
				</dt>
			</dl>
	</#list>
			<#if 1=pageIndex>
				<div class="page">
					<#if !page.lastPage>
						<a href="${getSitePath(getPage(category.url,page.nextPage))}">查看更多</a>
					<#else>
						<span>查看更多</span>
					</#if>
				</div>
			<#else>
				<#include "/ftl/category_page.ftl"/>
			</#if>
		</div>
		<aside>
			<!--#include virtual="/include/category/list.html/1.html"--><#-- 右侧编辑推荐 -->
			<!--#include virtual="/include/category/list.html/2.html"--><#-- 精彩图集 -->
			<div>
				<h3>热门排行</h3>
				<ul class="rank">
<@_contentList status=1 categoryId=category.id containChild=true endPublishDate=.now orderType='desc' orderField='clicks' count=10>
	<#list page.list as a>
					<li><a href="${getSitePath(a.url)}" target="_blank">${a.title}</a><span>${a.clicks}</span></li>
	</#list>
</@_contentList>
				</ul>
			</div>
		</aside>
</@_contentList>
	</div>
</main>
<!--#include virtual="/include/footer.html"-->
</body>
</html>